//
//  serviceDefualt.h
//  ZITHER
//
//  Created by weixin on 2018/8/17.
//  Copyright © 2018年 weixn. All rights reserved.
//

#import "ServiceManager.h"

@interface serviceDefualt : ServiceManager

/**
 图像识别
 
 @param imgUrl 图片路径
 @return 匹配图片数据
 */

+(RACSignal *)loadAdviserDataImgUrl:(NSString*)imgUrl reponseObjctClass:(Class)reponseObjctClass;


/**
 获取查询条件
 @return 获取查询条件
 */
+(RACSignal *)loadGoodsSearchConditions:(Class)reponseObjctClass;


/**
 获取产品列表
 @param dic (page 页数 size 数据量 sort 价格)
 @return 获取产品列表
 */

+(RACSignal *)loadGoodsList:(NSDictionary *)dic page:(NSInteger)page sort:(NSString*)sort reponseObjctClass:(Class)reponseObjctClass;


/**
 关注商品列表
 @param page (page 页数 size 数据量 sort 价格)
 @return 关注商品列表
 */

+(RACSignal *)loadgetFollowGoodspage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/**
 我的询价列表
 @return 我的询价列表
 */
+(RACSignal *)loadgetMyEnquiryList:(Class)reponseObjctClass;


/**
 已结束的询价列表
 @return 已结束的询价列表
 */

+(RACSignal *)loadgetMyEndEnquiryList:(NSUInteger)page reponseObjctClass:(Class)reponseObjctClass;




/**
 获取热门列表
 @param dic (page 页数 size 数据量 热门度排序(search_count))
 @return 获取产品列表
 */

+(RACSignal *)loadGoodsHotList:(NSInteger)page index:(NSInteger)index reponseObjctClass:(Class)reponseObjctClass;

//+(RACSignal *)loadGoodsHotList:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;


/**
 我的询价SKU详情
 @param id (page 页数 size 数据量 热门度排序(search_count))
 @return 获取产品列表
 */

+(RACSignal *)loadskuDetail:(NSString*)id reponseObjctClass:(Class)reponseObjctClass;


/**
 公开货源列表
 @param goodsId 商品 ID
 @param page 页数
 @return 公开货源列表
 */
+(RACSignal *)loadGetOpenGoodsSourceInfo:(NSString*)goodsId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;


/**
 新公开货源列表
 @param goodsId 商品 ID
 @param page 页数
 @return 公开货源列表
 */
+(RACSignal *)loadgetNewOpenGoodsSourceInfo:(NSString*)goodsId page:(NSInteger)page userEnquiryId:(NSString*)userEnquiryId lookTime:(NSString*)lookTime  reponseObjctClass:(Class)reponseObjctClass;


/**
 接收报价
 @param goodsId 商品 ID
 @param priceId 价格 ID
 @return 公开货源列表
 */
+(RACSignal *)loadacceptGoodsPrice:(NSString*)goodsId priceId:(NSString*)priceId reponseObjctClass:(Class)reponseObjctClass;

/**
 提醒商家报价
 @param goodsId 商品 ID
 @return 公开货源列表
 */
+(RACSignal *)loadRemindBizSourcePrice:(NSString*)goodsId reponseObjctClass:(Class)reponseObjctClass;

/**
 接受报价列表
 @param goodsId 商品 ID
 @return 公开货源列表
 */
+(RACSignal *)loadGetAcceptPriceList:(NSString*)goodsId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/**
 设置为不感兴趣的报价
 @param goodsId 商品 ID
 @return 公开货源列表
 */
+(RACSignal *)loadNoInterestPrice:(NSString*)goodsId reponseObjctClass:(Class)reponseObjctClass;


/**
 收到的报价列表
 @param goodsId 商品 ID
 @param page 分页
 @return 公开货源列表
 */
+(RACSignal *)loadGetBizPriceInfoList:(NSString*)goodsId page:(NSInteger)page userEnquiryId:(NSString*)userEnquiryId reponseObjctClass:(Class)reponseObjctClass;

/**
 新收到报价
 @param goodsId 商品 ID
 @param page 分页
 @return 公开货源列表
 */
+(RACSignal *)loadcheckNewBizPriceInfo:(NSString*)goodsId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/**
 开启询价
 @param goodsId 商品 ID
 @param page 分页
 @return 公开货源列表
 */
+(RACSignal *)loadopenEnquiry:(NSString*)goodsId;



/**
 收到最新报价
 @param goodsId 商品 ID
 @param page 分页
 @return 公开货源列表
 */
+(RACSignal *)loadcheckNewBizPriceInfo:(NSString*)goodsId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;




/**
 关注商品
 @param goodsId 商品 ID
 @return 成功or失败
 */
+(RACSignal *)loadonFollowGoods:(NSString*)goodsId reponseObjctClass:(Class)reponseObjctClass;

/**
 取消关注商品
 @param goodsId 商品 ID
 @return 成功or失败
 */
+(RACSignal *)loadcancelFollowGoods:(NSString*)goodsId reponseObjctClass:(Class)reponseObjctClass;


#pragma mark - ---  刷新询价

+(RACSignal *)loadrefreshEnquiry:(NSString*)goodsId reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  结束询价

+(RACSignal *)loadendEnquiryPrice:(NSString*)userEnquiryId reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  询价历史记录

+(RACSignal *)loadgetHistoryEnquiryList:(NSString*)goodsId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  不敢兴趣报价列表

+(RACSignal *)loadGetNoInterestList:(NSString*)goodsId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  发布 UGC
+(RACSignal *)loadGetAddUserUgc:(NSString*)ugcContent fileList:(NSArray*)fileList userSubjectId:(NSString*)userSubjectId reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  UGC 列表
+(RACSignal *)loadGetuserUgcList:(NSString*)userId isEssence:(NSString*)isEssence page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  UGC 详情页
+(RACSignal *)loadGetUserUgcDetail:(NSString*)ugcId reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  UGC 评论列表
+(RACSignal *)loadGetuserCommentList:(NSString*)relId relType:(NSString*)relType page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  自己发表的UGC列表
+(RACSignal *)loadMyselfUgcListUserIdU:(NSString*)userId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;



#pragma mark - ---  UGC点赞或者取消
+(RACSignal *)loadUpdateUserLaud:(NSString*)ugcId laudType:(NSString*)laudType reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  商品详情页获取地图
+(RACSignal *)loadGetBizMap:(NSString*)location markers:(NSString*)markers reponseObjctClass:(Class)reponseObjctClass;




#pragma mark - ---   发表主评论
+(RACSignal *)loadAddUserComment:(NSString*)relId commentContent:(NSString*)commentContent relType:(NSString*)relType replyUserId:(NSString*)replyUserId reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  发表子评论

/**
 发表子评论
 @param relId  详情 ID
 @param replyUserId 回复 ID
 @param relType 如果relType的值是1  则relId为ugcId 如果relType的值是2  则relId为pgcId
 @param commentContent 发布内容
 @param commentParentId C->B ID
 @param commentMasterId C->A ID
 @return 成功or失败
 */
+(RACSignal *)loadAddSonComment:(NSString*)relId replyUserId:(NSString*)replyUserId relType:(NSString*)relType commentParentId:(NSString*)commentParentId  commentMasterId:(NSString*)commentMasterId commentContent:(NSString*)commentContent reponseObjctClass:(Class)reponseObjctClass;

/** 删除评论 */
+(RACSignal *)loadDelUserCommentCommentId:(NSString*)commentId reponseObjctClass:(Class)reponseObjctClass;

/** 删除UGC */
+(RACSignal *)loaddelUserUgcUgcId:(NSString*)ugcId reponseObjctClass:(Class)reponseObjctClass;

/** 收到的消息 */
+(RACSignal *)loadGetUserMsgListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/** 我的点赞创作列表 */
+(RACSignal *)loadGetLaudContentListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/** 封面创作列表 */
+(RACSignal *)loadGetCoverCreateListPage:(NSInteger)page type:(NSString*)type reponseObjctClass:(Class)reponseObjctClass;

/** 我的关注列表 */
+(RACSignal *)loadGetMyselfFollowListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/** 关注我的列表 */
+(RACSignal *)loadGetFollowMeListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;


/** 添加关注 */
+(RACSignal *)loadAddUserFollowFollowUserId:(NSString*)followUserId reponseObjctClass:(Class)reponseObjctClass;
/** 取消关注 */
+(RACSignal *)loadCancelUserFollowFollowUserId:(NSString*)followUserId reponseObjctClass:(Class)reponseObjctClass;

/** 个人主页用户信息 */
+(RACSignal *)loadMainUserInfomainUserInfo:(NSString*)mainUserInfo1 reponseObjctClass:(Class)reponseObjctClass;

/** PGC详情 */
+(RACSignal *)loaduserPgcDetail:(NSString*)userPgcDetail reponseObjctClass:(Class)reponseObjctClass;

/** 点赞或者取消PGC */
+(RACSignal *)loadupdatePgcLaudPgcId:(NSString*)pgcId laudType:(NSString*)laudType reponseObjctClass:(Class)reponseObjctClass;

/** 我关注的创作列表 */
+(RACSignal *)loadMySelfFollowCreateListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/** PGC列表（杂志）*/
+(RACSignal *)loadUserPgcListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/** 个人主页列表 */
+(RACSignal *)loadMainCreateListuUserId:(NSString*)userId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/** 点赞创作列表 */
+(RACSignal *)loadlaudCreateListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/** 点赞创作列表 */
+(RACSignal *)loadlaudCreateListPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/** 根据品牌获取系列 */
+(RACSignal *)loadGoodsSeries:(NSString*)goodsID reponseObjctClass:(Class)reponseObjctClass;

/** 视频上传签名 */
+(RACSignal *)loadupVideoreponseObjctClass:(Class)reponseObjctClass;

/** 上传腕表视频信息 */
+(RACSignal *)loadVideosaveVideoId:(NSString*)videoId id:(NSString*)id goodId:(NSString*)goodId seriesId:(NSString*)seriesId brandId:(NSString*)brandId goodName:(NSString*)goodName seriesName:(NSString*)seriesName brandName:(NSString*)brandName reponseObjctClass:(Class)reponseObjctClass;

/** 举报 */
+(RACSignal *)loadReportRype:(NSString*)type sourceId:(NSString*)sourceId category:(NSString*)category ReponseObjctClass:(Class)reponseObjctClass;
/** 举报类别 */
+(RACSignal *)loadReportCategoryReponseObjctClass:(Class)reponseObjctClass;



/** 汇率列表 */
+(RACSignal *)loadReporthuilvlist:(Class)reponseObjctClass;

/** 推荐用户 */
+(RACSignal *)loadRecommendUserlist:(Class)reponseObjctClass;

/** 推荐的创作内容 */
+(RACSignal *)loadRecommendcreationlistPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/** 推荐的关键词 */
+(RACSignal *)loadkeywordlist:(Class)reponseObjctClass;




#pragma mark - --- 话题

/**话题选择列表*/
+(RACSignal *)loadTopicSubjectslistPage:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

/**话题选择列表*/
+(RACSignal *)loadTopicDefaultSubjecte:(Class)reponseObjctClass;


#pragma mark - --- 微信分享

/**微信分享*/
+(RACSignal *)loadWechat:(Class)reponseObjctClass;

#pragma mark - --- 搜索属性
+(RACSignal *)loadSearchAttribute:(Class)reponseObjctClass;

#pragma mark - ---  搜索商品数量
+(RACSignal *)loadsearchGoodsCount:(NSArray*)arr reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  搜索商品数量(带关键词搜索)
+(RACSignal *)loadsearchGoodsCount:(NSArray*)arr keyword:(NSString*)keyword reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  搜索结果列表
+(RACSignal *)loadSeachGoodsList:(NSArray*)arr page:(NSInteger)page sort:(NSInteger)sort keyword:(NSString*)keyword reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - ---  品牌馆标签
+(RACSignal *)loadGoodsBrandTagstList:(Class)reponseObjctClass;

#pragma mark - --- 品牌馆对应标签获取品牌
+(RACSignal *)loadGoodsBrandTagst:(NSString*)BrandId reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - --- 品牌主题页
+(RACSignal *)loadGoodsBrand:(NSString*)BrandId reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - --- 我关注的品牌/推荐
+(RACSignal *)loadgoodsBrandMyFollow:(Class)reponseObjctClassl;

#pragma mark - --- 热门品牌标签
+(RACSignal *)loadcreateHotLabel:(Class)reponseObjctClass;

#pragma mark - --- 获取特卖场列表
+(RACSignal *)loadspecialSaleStatus:(NSString*)status reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - --- 获取某个卖场的所有货源列表
+(RACSignal *)loadspecialSaleSceneid:(NSString*)specialSaleSceneId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;
+(RACSignal *)loadspecialSaleSceneid:(NSString*)specialSaleSceneId brandId:(NSString *)brandId sexId:(NSString*)sexId page:(NSInteger)page reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - --- 指定特卖场列表
+(RACSignal *)loadspecialSaleSceneid:(NSString*)GoodsId reponseObjctClass:(Class)reponseObjctClass;

#pragma mark - --- 获取筛选品牌列表
+(RACSignal *)loadspecialSaleBrandList:(Class)reponseObjctClass;
#pragma mark - --- 获取筛选列表
+(RACSignal *)loadspecialSaleSexList:(Class)reponseObjctClass;

@end
